﻿
@{
    ViewBag.Title = "ShroffTrustDataView";
}
@model justice.ViewModel.shroffTrust_insurer
<style type="text/css">
    select {
        width: 210px;
        height: 25px;
        padding: 0 4%;
        margin: 0;
    }

    option {
        text-align: center;
    }

    .Pact_trial {
        height: 120px;
    }

    #Pack_tabb {
        height: 120px;
    }

    .Pack_Content {
        height: 100px;
    }

    .Pack_Right {
        text-align: right;
        margin-top: 25px;
    }

        .Pack_Right > input {
            width: 55px;
        }

    .border {
        width: 30px;
    }

    .Pact_review {
        width: 10px;
        height: auto;
        font-size: 18px;
        margin-left: 25px;
    }

    .Pack_record {
        width: 10px;
        height: auto;
        font-size: 18px;
        margin-left: 25px;
    }

    .Institution_Idea {
        height: 40px;
    }

    .Institution_People {
        text-align: right;
        height: 25px;
        margin-top: 5px;
    }

        .Institution_People > input {
            width: 100px;
            outline: none;
            text-align: center;
            border: 0;
            border-bottom: solid 1px black;
        }

    .Pack_Right > input {
        width: 100px;
        border: 0;
        border-bottom: solid 1px black;
        outline: none;
        text-align: center;
    }

    .content > input, .review > input, .entrust > input, .first_Draft > input {
        width: auto;
        outline: none;
        border-color: transparent;
    }

    .Pact_trial > textarea {
        resize: none;
        width: 883px;
        height: 154px;
        border-color: transparent;
        outline: none;
    }

    .Pack_Content > textarea {
        resize: none;
        width: 883px;
        height: 116px;
        border-color: transparent;
        outline: none;
    }

    .Pack_peopelIdea > textarea {
        resize: none;
        width: 883px;
        height: 57px;
        border-color: transparent;
        outline: none;
    }

    .Institution_Idea > textarea {
        resize: none;
        width: 883px;
        height: 40px;
        border-color: transparent;
        outline: none;
    }

    .insurance_Company > textarea {
        resize: none;
        width: 883px;
        height: 40px;
        border-color: transparent;
        outline: none;
    }

    .btn {
        width: 200px;
        outline: none;
        border-color: transparent;
        background-color: lightgray;
        color: white;
        font-size: 18px;
        font-weight: 600;
    }

    .BtnFooter {
        height: auto;
        text-align: center;
    }

    .table {
        background-color: white;
        width: 1025px;
        margin-top: 10px;
        margin-left: 57px;
        margin-bottom: 10px;
    }

    .main {
        background-color: white;
        height: 1100px;
    }

    tbody {
        width: 1025px;
    }

    tr > td {
        font-size: 16px;
    }

    .idea {
        height: 70px;
    }

    .InpReivewVal {
        width: auto;
        outline: none;
        border-color: transparent;
    }

    .inpNum {
        width: auto;
        outline: none;
        border-color: transparent;
    }

    .num {
        margin-left: 57px;
        color: black;
    }

    textarea {
        font-size: 18px;
    }

    .Maintitle {
        font-weight: 500;
        font-size: 30px;
        text-align: center;
        height: 60px;
    }

    .clear {
        height: 26px;
    }

    .return {
        width: 80px;
        position: fixed;
        right: 100px;
        top: 400px;
        z-index: 100;
        color: #333;
        background-color: #fff;
        border-color: #ccc;
        font-size: 16px;
        font-weight: 200;
    }
</style>
<a class="btn btn-default return" href="/ShroffBook/shroffbookIndex">返&nbsp;&nbsp;回</a>
<div class="main">
    <div class="clear"></div>
    <div class="Maintitle">
        西科大鉴定委托书评审记录
    </div>

    <h3 class="num">表格编号：@ViewBag.number</h3>

    <form class="form" method="post">
        <table class="table" border="1" id="table">
            <tr>
                <td width="110"><h4>委托人</h4></td>
                <td class="content" width="402">
                    <h4>
                        @ViewBag.clicent
                    </h4>
                </td>
                <td width="110"><h4>评审人</h4></td>
                <td class="review" width="402">
                    <h4>
                        @ViewBag.user
                    </h4>
                </td>
            </tr>
            <tr>
                <td><h4>被委托人</h4></td>
                <td class="entrust" width="402">
                    <h4>
                        @ViewBag.bename
                    </h4>
                </td>
                <td><h4>初稿书写</h4></td>
                <td class="first_Draft" width="402">
                    <h4>
                        @Model.firstdraftwrite
                    </h4>
                </td>
            </tr>
            <tr>
                <td><h4>评审类型</h4></td>
                <td class="options" colspan="4">
                    @{
                        if (Model.reviewtype == 1)
                        {

                            <h4>普通的鉴定任务</h4>
                        }
                        else if (Model.reviewtype == 2)
                        {

                            <h4>复杂的鉴定任务</h4>
                        }
                        if (Model.reviewtype == 3)
                        {

                            <h4>重大的鉴定任务</h4>
                        }
                        else if (Model.reviewtype == 4)
                        {

                            <h4>新的鉴定任务</h4>
                        }
                    }
                </td>
            </tr>
            <tr>
                <td><h4>涉及保险公司</h4></td>
                <td colspan="4">
                    @{
                        if (ViewBag.ner != "")
                        {
                            <h4>@ViewBag.ner</h4>
                        }
                        else if (ViewBag.ner == null)
                        {
                            <h4>@ViewBag.ner</h4>
                        }
                    }
                </td>
            </tr>
            <tr class="Tr">
                <td>
                    <div class="Pact_review">
                        协议书审判内容
                    </div>
                </td>
                <td colspan="4" class="Pact_trial">
                    <textarea rows="3" cols="20" name="trail_Content" id="TrailContent">@Model.protocolreviewcontent</textarea>
                </td>
            </tr>
            <tr>
                <td class="td">
                    <div class="Pack_record">
                        协议评审记录
                    </div>
                </td>
                <td colspan="4" id="Pack_tabb">
                    <div class="Pack_Content">
                        <textarea rows="3" cols="20" name="agreement_Pack_Content" id="AgreementPackContent">@Model.protocolreviewtabb</textarea>
                    </div>
                    <div class="Pack_Right">
                        鉴定人：<input type="text" value="@ViewBag.user" name="pack_User" />&nbsp;　　&nbsp;
                        日期：<input type="datetime" value="@Model.appraiserdateTime" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <h4> 鉴定人意见</h4>
                </td>
                <td colspan="4" class="Pack_peopelIdea">
                    <textarea rows="3" cols="20" name="pack_User_Idea" id="PackUserIdea">@Model.appraiseridea</textarea>
                </td>
            </tr>
            <tr>
                <td><h4>机构意见</h4></td>
                <td colspan="4">
                    <div class="Institution_Idea">
                        <textarea rows="1" cols="1" name="institution_Idea" id="InstitutionIdea">@Model.organizationidea</textarea>
                    </div>
                    <div class="Institution_People">
                        机构负责人:<input type="text" value="@ViewBag.fuuser" name="institution_User" />&nbsp;　　&nbsp;
                        日期：<input type="datetime" value="@Model.organizationdatetime" />
                    </div>
                </td>
            </tr>
            <tr>
                <td><h4>保险公司是否参与</h4></td>
                <td colspan="4">
                    <h4>
                        @Model.insurerorjoin
                    </h4>
                </td>
            </tr>
            @{ if (ViewBag.ner != "未涉保")
                {
                    <tr>
                        <td><h4>保险公司意见</h4></td>
                        <td colspan="4" class="insurance_Company">
                            <textarea rows="3" cols="20" name="insurance_Company_Idea" id="InsueranceCompanyIdea">@Model.insureridea</textarea>
                        </td>
                    </tr>
                }}
        </table>
    </form>
    <script type="text/javascript">
        function exportExcel() {
            var sHtml = htmlEncode($("#table")[0].outerHTML);//做html编码
            $("input[name='hHtml']").val(sHtml);
            $("form[name='form']").submit();
        }
        function htmlEncode(value) {
            return $('<div/>').text(value).html();
        }
    </script>
</div>
@using (Html.BeginForm("ExportExcel", "XKDShroffTrustBook", FormMethod.Post, new { name = "form" }))
{
    @Html.Hidden("hHtml");
}
